package aml.parse.node;

import aml.parse.ParseNode;

abstract public class OpNode extends ParseNode {

	protected boolean isUnary = false;
	
	public OpNode setUnary(boolean u) {
		isUnary = u;
		return this;
	}
	
	public OpNode setUnary() {
		return setUnary(true);
	}
	
	public boolean isUnary() {
		return isUnary;
	}
	
	protected ParseNode lhs;
	protected ParseNode rhs;

	public OpNode setLeft(ParseNode lhs) {
		this.lhs = lhs;
		return this;
	}

	public OpNode setRight(ParseNode rhs) {
		this.rhs = rhs;
		return this;
	}

}
